var util = require('../../utils/util.js');
var ajax = require('../../utils/ajax.js');
var app = getApp();
Page({
    data: {
        dataLoaded:true,
        options: {}
    },
    onLoad(options) {
        this._options = options;
        this.setData({
            options
        })
    },
    _editShopSet: function(evt) {
        var _self = this;
        var url = "/openapi/Shop/editShopSet";
        var paramsData = evt.detail.value;
        paramsData.shopSid = app.getShopSid();
         this.setData({
                dataLoaded:false
            })
        ajax.P(url, paramsData, function(data) {
            _self.setData({
                dataLoaded:true
            })
            util.alert('修改成功', function() {
                wx.navigateBack();
            })
        })
    }
});